﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Web.Configuration;
using System.Web;

namespace SilverPOP.Library.Utilities
{
    public class SiteSettings
    {
  

        public static string BaseUrl
        {
            get
            {
                string orginalUrl = HttpContext.Current.Request.Url.AbsoluteUri;
                if (HttpContext.Current.Request.Url.Query.Length > 0)
                    orginalUrl = orginalUrl.Replace(HttpContext.Current.Request.Url.Query, string.Empty);

                return orginalUrl.Replace(HttpContext.Current.Request.Url.AbsolutePath, string.Empty) + ((HttpContext.Current.Request.ApplicationPath == "/" ? "" : HttpContext.Current.Request.ApplicationPath)) + '/';
            }
        }



       
    }//end class

    /// <summary>
    /// TMP= Template
    /// DB = Database
    /// SL = SupressionList
    /// </summary>
    public enum SilverpopNammingPostFix
    {
        TMP,
        DB,
        SL
    }
}
